Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Stubs - update Guid -> UUID #669

Merged
merged 7 commits into from
Mar 3, 2025

Conversation

StudioWEngineers
Copy link
Contributor

@StudioWEngineers StudioWEngineers commented Jan 16, 2025

Currently the type hint in many methods is Any, since Guid is no longer defined and static checkers like mypy cannot find its definition. As example:

class File3dmObjectTable:
    def AddPoint(self, x: float, y: float, z: float) -> Guid: ...

image

The correct type is uuid.UUID, as discussed here.

Based on #668.

@StudioWEngineers StudioWEngineers changed the title [Python ] Stubs - update Guid -> UUID [Python] Stubs - update Guid -> UUID Jan 16, 2025
@fraguada
Copy link
Member

Hmm, now we have merge conflicts. @StudioWEngineers, can you see what those are from your end?

@StudioWEngineers
Copy link
Contributor Author

sure, but please give me a couple of days.

@StudioWEngineers
Copy link
Contributor Author

merge conflicts solved @fraguada

@fraguada fraguada merged commit 0afa9fc into mcneel:dev Mar 3, 2025
14 checks passed
@StudioWEngineers StudioWEngineers deleted the py_stub_fix_uuid_return_type branch March 3, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants